import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.14
import "./"
Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

//    RectSelector{
//        id: rect
//        width: 200
//        height: 200
//        color: "#00cc99"
//    }

    RectSelectorV2{
        id: rect
        width: 200
        height: 200
    }

    Text{
        anchors.centerIn: parent
        text: String("%1,%2 %3x%4 type:%5").arg(rect.x).arg(rect.y)
        .arg(rect.width).arg(rect.height).arg(RectSelector.MouseType.Bottom)
    }
}
